#
# HoI - Random Events
#
#		written by Henrik Fhraeus
#		Updated 6/6 by Steel
#

#########################################################################
#  Research Sabotaged
#########################################################################
#
# Modified trigger conditions
#
event = { 
	id = 1000
	random = yes
	trigger = {
		atwar = yes
#		NOT = {
#			intel_diff = -5  # Intel Diff < -5
#		}
	}
	name = "EVT_1000R_NAME"
	desc = "EVT_1000R_DESC"
	style = 0

	action_a = {
			name = "ACTIONNAME1000A"
			command = { type = research_sabotaged }
	}
}


#########################################################################
#  Industry Sabotaged
#########################################################################
#
# Modified trigger conditions
#
event = { 

	id = 1010
	random = yes
	trigger = {
		atwar = yes
#		NOT = {
#			intel_diff = -5  # Intel Diff < -5
#		}
	}
	name = "EVT_1010R_NAME"
	desc = "EVT_1010R_DESC"
	style = 0

	action_a = {
			name = "ACTIONNAME1010A"
			command = { type = industry which = -1 value = -1 } # 1 IC Sabotaged
	}
}



#########################################################################
#  Fort Sabotaged
#########################################################################
#
# Modified trigger conditions
#
event = { 
	id = 1020
	random = yes
	trigger = {
		atwar = yes
#		NOT = {
#			intel_diff = -5  # Intel Diff < -5
#		}
	}
	name = "EVT_1020R_NAME"
	desc = "EVT_1020R_DESC"
	style = 0

	action_a = {
			name = "ACTIONNAME1020A"
			command = { type = land_fort which = -1 value = -1 } # A Land Fort Sabotaged by 1
	}
}

#########################################################################
#  Coastal Fort Sabotaged
#########################################################################
#
# Modified trigger conditions
#
event = { 
	id = 1030
	random = yes
	trigger = {
		atwar = yes
#		NOT = {
#			intel_diff = -5  # Intel Diff < -5
#		}
	}
	name = "EVT_1030R_NAME"
	desc = "EVT_1030R_DESC"
	style = 0

	action_a = {
			name = "ACTIONNAME1030A"
			command = { type = coastal_fort which = -1 value = -1 } # A Land Fort Sabotaged by 1
	}
}

#########################################################################
#  Technology Stolen From Enemy
#########################################################################
#
# Modified trigger conditions
#
event = { 
	id = 1040
	random = yes
	trigger = {
		atwar = yes
#		intel_diff = 5 # intel_diff >= 5
	}
	name = "EVT_1040R_NAME"
	desc = "EVT_1040R_DESC"
	style = 0

	action_a = {
			name = "ACTIONNAME1040A"
			command = { type = steal_tech which = -1 } # Steal a tech from a random enemy or neighbor
	}
}

#########################################################################
#  Commander Assassinated by Enemy Commandos
#########################################################################
#
# Modified trigger conditions
#
event = { 
	id = 1050
	random = yes
	trigger = {
		atwar = yes
#		NOT = {
#			intel_diff = -10 # intel_diff < -10
#		}
	}
	name = "EVT_1050R_NAME"
	desc = "EVT_1050R_DESC"
	style = 0

	action_a = {
			name = "ACTIONNAME1050A"
			command = { type = sleepleader which = -1 }
	}
}

#########################################################################
#  Commander Defects
#########################################################################
#
# Modified trigger conditions
#

event = { 
	id = 1060
	random = yes
	trigger = {
		atwar = yes
		dissent = 10 # National Dissent >= 10%
#		NOT = {
#			leader_loyalty = 3
#		}
	}
	name = "EVT_1060R_NAME"
	desc = "EVT_1060R_DESC"
	style = 0

	action_a = {
			name = "ACTIONNAME1060A"
			command = { type = sleepleader which = -2 } # Lowest loyalty leader
	}
}


##########################################################################
#  Traitor Executed
#########################################################################
#
# Added minor dissent reduction /Steel
#

event = { 
	id = 1080
	random = yes
	trigger = {
		NOT = {
			leader_loyalty = 3
			alignment = democratic
		}
	}
	name = "EVT_1080R_NAME"
	desc = "EVT_1080R_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME1080A"
		command = { type = sleepleader which = -2 } # Lowest loyalty leader
		command = { type = dissent value = -1 }
	}
}

#########################################################################
#  Parliamentary Scandal
#########################################################################
#
# Reduced dissent impact /Steel
#

event = { 
	id = 1090
	random = yes
	trigger = {
		government = democratic
	}
	name = "EVT_1090R_NAME"
	desc = "EVT_1090R_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME1090A"
		command = { type = dissent value = 3 }
	}
}
#########################################################################
#  Minister Defects
#########################################################################
#
# Modified trigger conditions
#

event = { 
	id = 1100
	random = yes
	trigger = {
		atwar = yes
		dissent = 10 # National Dissent >= 10%
#		NOT = {
#			minister_loyalty = 3
#		}
	}
	name = "EVT_1100R_NAME"
	desc = "EVT_1100R_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME1100A"
		command = { type = sleepminister which = -2 } # Lowest loyalty minister
	}
}
#########################################################################
#  Great War Manifestation
#########################################################################
#
# Added minor dissent reduction /Steel
#

event = { 
	id = 1110
	random = yes
	trigger = {
		atwar = no
		government = democratic
	}
	name = "EVT_1110R_NAME"
	desc = "EVT_1110R_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME1110A"
		command = { type = warentry value = 5 }
		command = { type = dissent value = -1 }
	}
}
#########################################################################
#  Great Peace Manifestation
#########################################################################
event = { 
	id = 1120
	random = yes
	trigger = {
		atwar = no
		government = democratic
	}
	name = "EVT_1120R_NAME"
	desc = "EVT_1120R_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME1120A"
		command = { type = warentry value = -5 }
	}
}
#########################################################################
#  Partisan Revolt
#########################################################################
#
# Disabled by Paradox
#
#event = { 
#	id = 1130
#	random = yes
#	trigger = {
#		NOT = {
#			government = democratic
#		}
#		dissent = 5
#	}
#	name = "EVT_1130R_NAME"
#	desc = "EVT_1130R_DESC"
#	style = 0
#
#	action_a = {
#		name = "ACTIONNAME1130A"
#		command = { type = dissent value = 2 }
#	}
#}
#########################################################################
#  Partisan Revolt
#########################################################################
#event = { 
#	id = 1131
#	random = yes
#	trigger = {
#		NOT = {
#			government = democratic
#		}
#		dissent = 15
#	}
#	name = "EVT_1130R_NAME"
#	desc = "EVT_1130R_DESC"
#	style = 0
#
#	action_a = {
#		name = "ACTIONNAME1131A"
#		command = { type = dissent value = 2 }
#	}
#}
#########################################################################
#  Partisan Revolt
#########################################################################
#event = { 
#	id = 1132
#	random = yes
#	trigger = {
#		NOT = {
#			government = democratic
#		}
#		dissent = 25
#	}
#	name = "EVT_1130R_NAME"
#	desc = "EVT_1130R_DESC"
#	style = 0
#
#	action_a = {
#		name = "ACTIONNAME1132A"
#		command = { type = dissent value = 2 }
#	}
#}
#########################################################################
#  Partisan Revolt
#########################################################################
#event = { 
#	id = 1133
#	random = yes
#	trigger = {
#		NOT = {
#			government = democratic
#		}
#		dissent = 35
#	}
#	name = "EVT_1130R_NAME"
#	desc = "EVT_1130R_DESC"
#	style = 0
#
#	action_a = {
#		name = "ACTIONNAME1133A"
#		command = { type = dissent value = 2 }
#	}
#}
#########################################################################
#  Failed Coup d'Etat - Traitors executed
#########################################################################
#
# Increased dissent reduction
#

event = { 
	id = 1140
	random = yes
	trigger = {
		dissent = 30 # >= 30
	}
	name = "EVT_1140R_NAME"
	desc = "EVT_1140R_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME1140A"
		command = { type = sleepminister which = -2 }
		command = { type = sleepleader which = -1 }
		command = { type = sleepleader which = -2 }
		command = { type = sleepleader which = -2 }
		command = { type = dissent value = -15 }
	}
}
#########################################################################
#  Successful Coup d'Etat - The Regime Falls
#########################################################################
event = { 
	id = 1150
	random = yes
	trigger = {
		dissent = 60 # >= 60
	}
	name = "EVT_1150R_NAME"
	desc = "EVT_1150R_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME1150A"
		command = { type = regime_falls }
		command = { type = dissent value = -100 }
	}
}
#########################################################################
#  Famous War Hero publishes articles critizing the Conduct of War
#########################################################################
#
# Added dissent and lost_VP triggers and reduced dissent effect / Steel
#

event = { 
	id = 1001
	random = yes
	trigger = {
			atwar = yes
			dissent = 5
#			lost_VP = { country = -1 value = 20 }
	}
	name = "EVT_1001R_NAME"
	desc = "EVT_1001R_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME1001A"
		command = { type = dissent value = 2 }
		command = { type = leader_loyalty which = -1 value = -4 }
	}
}
#########################################################################
#  Womens organisations donates material to the Army
#########################################################################
#
# Increased supply gain to make event relevant and added minor dissent reduction /Steel
#

event = { 
	id = 1002
	random = yes
	trigger = {	
		atwar = yes
		NOT = {
			dissent = 20
		}
	}
	name = "EVT_1002R_NAME"
	desc = "EVT_1002R_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME1002A"
		command = { type = supplies value = 2000 }
		command = { type = dissent value = -1 }
	}
}
#########################################################################
#  Youth Movement provides more volunteers
#########################################################################
#
# Added minor dissent reduction /Steel
#

event = { 
	id = 1003
	random = yes
	trigger = {
		atwar = yes
		NOT = { 
			alignment = democratic
		}
	}
	name = "EVT_1003R_NAME"
	desc = "EVT_1003R_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME1003A"
		command = { type = manpowerpool value = 100 }
		command = { type = dissent value = -1 }
	}
}
#########################################################################
#  Women labour force tapped for factories.
#########################################################################
#
# Added minor dissent effect /Steel
#

event = { 
	id = 1004
	random = yes
	trigger = {
		atwar = yes
		alignment = democratic
	}
	
	name = "EVT_1004R_NAME"
	desc = "EVT_1004R_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME1004A"
		command = { type = manpowerpool value = 100 }
		command = { type = dissent value = 1 }
	}
}
#########################################################################
#  Great Military Parade held in Capital
#########################################################################
#
# Added supplies trigger condition and reduced dissent effect /Steel
#

event = { 
	id = 1005
	random = yes
	trigger = {
		 supplies = 100 
	}
	name = "EVT_1005R_NAME"
	desc = "EVT_1005R_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME1005A"
		command = { type = supplies value = -100 }
		command = { type = dissent value = -2 }
	}
}
#########################################################################
#  Government nationalizes private sector
#########################################################################
event = { 
	id = 1006
	random = yes
	trigger = {
		NOT = { 
		alignment = democratic
		}
	}
	name = "EVT_1006R_NAME"
	desc = "EVT_1006R_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME1006A"
		command = { type = industry which = -1 value = 1 }
		command = { type = industry which = -1 value = 1 }
		command = { type = industry which = -1 value = 1 }
		command = { type = industry which = -1 value = 1 }
		command = { type = industry which = -1 value = 1 }
		command = { type = dissent value = 1 }
	}
}
#########################################################################
#  Massflight of War Refugees
#########################################################################
#
#  Modified trigger so that refugee flight occurs if a major is at war
#  and that only peaceful countries can now receive refugees. /Steel
#

event = { 
	id = 1007
	random = yes
	trigger = {
		atwar = no
		OR = {
		atwar = GER
		atwar = SOV
		atwar = CHI
		atwar = ENG
		atwar = USA
		atwar = FRA
		atwar = ITA
		atwar = JAP
		}
	}
	name = "EVT_1007R_NAME"
	desc = "EVT_1007R_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME1007A"
		command = { type = manpowerpool value = 30 }
	}
}
#########################################################################
#  Major Worker Strike
#########################################################################
#
# Removed IC loss (this can ruin minors) and added supply loss.
#

event = { 
	id = 1008
	random = yes
	trigger = {
		dissent = 2
	}
	name = "EVT_1008R_NAME"
	desc = "EVT_1008R_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME1008A"
		command = { type = supplies value = -1000 }
		command = { type = dissent value = 3 }
	}
}
#########################################################################
#  Artist reflects popular emotions and records epic song
#########################################################################
event = { 
	id = 1009
	random = yes
	trigger = {
		atwar = yes 
		dissent = 1
		}
	name = "EVT_1009R_NAME"
	desc = "EVT_1009R_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME1009A"
		command = { type = dissent value = -3 }
	}
}
#########################################################################
#  Leading scientist defects to your country
#########################################################################
#
# Added trigger condition /Steel
#

event = { 
	id = 1011
	random = yes
	trigger = {
		atwar = no
	}
	name = "EVT_1011R_NAME"
	desc = "EVT_1011R_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME1011A"
		command = { type = steal_tech which = -1 }
	}
}
#########################################################################
#  Accidental discovery. Miracular breaktrough in research
#########################################################################
#
# Added trigger condition /Steel
#

event = { 
	id = 1012
	random = yes
	trigger = {
		major = no		
	}
	name = "EVT_1012R_NAME"
	desc = "EVT_1012R_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME1012A"
		command = { type = gain_tech which = -1 }
	}
}
#########################################################################
#  Private initiative boost production
#########################################################################
event = { 
	id = 1013
	random = yes
	trigger = {
		NOT = { 
		alignment = communist
		}
	}
	name = "EVT_1013R_NAME"
	desc = "EVT_1013R_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME1013A"
		command = { type = industry which = -1 value = 1 }
		command = { type = industry which = -1 value = 1 }
		command = { type = industry which = -1 value = 1 }
		command = { type = industry which = -1 value = 1 }
		command = { type = industry which = -1 value = 1 }
		command = { type = industry which = -1 value = 1 }
	}
}
#########################################################################
#  Rogue Politician
#########################################################################
event = { 
	id = 1014
	random = yes
	trigger = {
		alignment = democratic
	}
	name = "EVT_1014R_NAME"
	desc = "EVT_1014R_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME1014A"
		command = { type = dissent value = 1 }
		command = { type = influence value = -3 }
	}
	action_b = {
		name = "ACTIONNAME1014B"
		command = { type = dissent value = -1 }
		command = { type = influence value = 3 }
	}
}
#########################################################################
#  Rogue Politician
#########################################################################
event = { 
	id = 1015
	random = yes
	trigger = {
		NOT = { 
		alignment = democratic
		}
	}
	name = "EVT_1015R_NAME"
	desc = "EVT_1015R_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME1015A"
		command = { type = dissent value = -1 }
		command = { type = influence value = 3 }
		command = { type = sleepminister which = -2 }
	}
	action_b = {
		name = "ACTIONNAME1015B"
		command = { type = dissent value = 1 }
		command = { type = influence value = -3 }
	}
}
#########################################################################
#  Outlaw the Communist Parties
#########################################################################
event = { 
	id = 1016
	random = yes
	trigger = {
		alignment = democratic
	}
	name = "EVT_1016R_NAME"
	desc = "EVT_1016R_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME1016A"
		command = { type = alignment which = fascist value = -5 }
		command = { type = alignment which = communist value = 15 }
	}
	action_b = {
		name = "ACTIONNAME1016B"
		command = { type = alignment which = communist value = -5 }
		command = { type = alignment which = fascist value = 15 }
	}
}
#########################################################################
#  Outlaw the Fascist Parties
#########################################################################
event = { 
	id = 1017
	random = yes
	trigger = {
		alignment = democratic
	}
	name = "EVT_1017R_NAME"
	desc = "EVT_1017R_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME1017A"
		command = { type = alignment which = communist value = -5 }
		command = { type = alignment which = fascist value = 15 }
	}
	action_b = {
		name = "ACTIONNAME1017B"
		command = { type = alignment which = fascist value = -5 }
		command = { type = alignment which = communist value = 15 }
	}
}


# C.O.R.E. v0.7 transition to CSV completed
####################################################
# Random Political Events 1202000 to 1202010 
# by Nachinus
####################################################

# Sector Polarization Events

event = {
	id = 1202001
	random = yes
	trigger = {
		alignment = democratic
	}
	name = CEVTNAME_1202001
	desc = CEVTDESC_1202001
	style = 0

	action_a = {
		name = CEVTACTA_1202001
		command = { }
	}
	action_b = {
		name = CEVTACTB_1202001
		command = { type = industry which = -1 value = 1 }
		command = { type = industry which = -1 value = 1 }
		command = { type = industry which = -1 value = 1 }
		command = { type = dissent value = 3 }
	}
	action_c = {
		name = CEVTACTC_1202001
		command = { type = coalpool value = 300 }
		command = { type = steelpool value = 200 }
		command = { type = dissent value = 1 }
	}
	action_d = {
		name = CEVTACTD_1202001
		command = { type = dissent value = -3 }
		command = { type = industry which = -1 value = -1 }
		command = { type = industry which = -1 value = -1 }
	}
}

# Polarizacin de la mano de obra

event = {
	id = 1202002
	trigger = {
		alignment = communist
	}
	random = yes
	name = CEVTNAME_1202002
	desc = CEVTDESC_1202002
	style = 0

	action_a = {
		name = CEVTACTA_1202001
		command = { }
	}
	action_b = {
		name = CEVTACTB_1202001
		command = { type = industry which = -1 value = 1 }
		command = { type = industry which = -1 value = 1 }
		command = { type = dissent value = 2 }
	}
	action_c = {
		name = CEVTACTC_1202001
		command = { type = coalpool value = 400 }
		command = { type = steelpool value = 300 }
		command = { type = dissent value = 1 }
	}
	action_d = {
		name = CEVTACTD_1202001
		command = { type = dissent value = -2 }
		command = { type = industry which = -1 value = -1 }
		command = { type = industry which = -1 value = -1 }
	}
}

# Campaa de potenciacin de sectores de produccin

event = {
	id = 1202003
	trigger = {
		alignment = fascist
	}
	random = yes
	name = CEVTNAME_1202003
	desc = CEVTDESC_1202003
	style = 0

	action_a = {
		name = CEVTACTA_1202001
		command = { }
	}
	action_b = {
		name = CEVTACTB_1202001
		command = { type = industry which = -1 value = 1 }
		command = { type = industry which = -1 value = 1 }
		command = { type = industry which = -1 value = 1 }
		command = { type = dissent value = 3 }
	}
	action_c = {
		name = CEVTACTC_1202001
		command = { type = coalpool value = 300 }
		command = { type = steelpool value = 200 }
		command = { type = dissent value = 1 }
	}
	action_d = {
		name = CEVTACTD_1202001
		command = { type = dissent value = -3 }
		command = { type = industry which = -1 value = -1 }
		command = { type = industry which = -1 value = -1 }
	}
}

#####################################################
#Lack of food stuff-Falta de alimentos

event = {
	id = 1202004
	trigger = {
		atwar = yes
		year = 1940
	}
	random = yes
	name = CEVTNAME_1202004
	desc = CEVTDESC_1202004
	style = 0

	action_a = {
		name = CEVTACTA_1202004
		command = { type = supplies value = -100 }
	}
	action_b = {
		name = CEVTACTB_1202004
		command = { type = supplies value = -300 }
		command = { type = dissent value = -1 }
	}
	action_c = {
		name = CEVTACTC_1202004
		command = { type = dissent value = 3 }
	}
}
##############################################################
#Disobedience to Military Service calls/Falta de adherencia a las llamadas a filas

event = {
	id = 1202005
	trigger = {
		atwar = yes
		alignment = democratic
		dissent = 10
	}
	random = yes
	name = CEVTNAME_1202005
	desc = CEVTDESC_1202005
	style = 0

	action_a = {
		name = CEVTACTA_1202005
		command = { type = supplies value = -200 }
	}
	action_b = {
		name = CEVTACTB_1202005
		command = { type = dissent value = 4 }
	}
	action_c = {
		name = CEVTACTC_1202005
		command = { type = manpowerpool value = -10 }
	}
}

event = {
	id = 1202006
	trigger = {
		atwar = yes
		alignment = communist
		dissent = 25
	}
	random = yes
	name = CEVTNAME_1202005
	desc = CEVTDESC_1202006
	style = 0

	action_a = {
		name = CEVTACTA_1202005
		command = { type = dissent value = 2 }
	}
	action_b = {
		name = CEVTACTB_1202006
		command = { type = supplies value = -200 }
	}
	action_c = {
		name = CEVTACTC_1202005
		command = { type = manpowerpool value = -10 }
	}
}

event = {
	id = 1202007
	trigger = {
		atwar = yes
		alignment = fascist
		dissent = 20
	}
	random = yes
	name = CEVTNAME_1202005
	desc = CEVTDESC_1202007
	style = 0

	action_a = {
		name = CEVTACTA_1202007
		command = { type = dissent value = 2 }
	}
	action_b = {
		name = CEVTACTB_1202007
		command = { type = supplies value = -200 }
	}
	action_c = {
		name = CEVTACTC_1202005
		command = { type = manpowerpool value = -10 }
	}
}

####################################################
# VIP's trip to URSS/ Viaje de figura de la cultura a la URSS

event = {
	id = 1202008
	trigger = {
		atwar = no
		alignment = democratic
		NOT = {
			atwar = SOV
		}
	}
	random = yes
	name = CEVTNAME_1202008
	desc = CEVTDESC_1202008
	style = 0

	action_a = {
		name = CEVTACTA_OK
		command = { type = alignment which = communist value = 5 }
	}
}

event = {
	id = 1202009
	trigger = {
		atwar = no
		alignment = democratic
		NOT = {
			atwar = SOV
		}
	}
	random = yes
	name = CEVTNAME_1202009
	desc = CEVTDESC_1202009
	style = 0

	action_a = {
		name = CEVTACTA_OK
		command = { type = alignment which = communist value = -5 }
	}
}

#################################################
# Communist country's pro-european campaign / Campaa pro-europea en pases comunistas

event = {
	id = 1202010
	trigger = {
		atwar = no
		alignment = communist
		NOT = {
			atwar = GER
		}
	}
	random = yes
	name = CEVTNAME_1202010
	desc = CEVTDESC_1202010
	style = 0

	action_a = {
		name = CEVTACTA_1202010
		command = { }
	}
	action_b = {
		name = CEVTACTB_1202010
		command = { type = alignment which = communist value = -2 }
		command = { type = alignment which = democratic value = 2 }
		command = { type = influence value = 2 }
	}
}
